/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter.verification;

import com.xingkeduo.dto.RefreshCodeResponseDto;
import com.xingkeduo.utils.ResponseUtils;
import lombok.Data;

@Data
public class VerificationCode {

    private int error;
    private Object reason;
    private ContentVerification content;


    public void covert(ResponseUtils<RefreshCodeResponseDto> responseUtils, ContentVerification content) {
        this.error=responseUtils.getStatus()==1?0:1;
        this.reason=responseUtils.getMsg();
        this.content=content;
    }
}